<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .test {
            width: 234px;
            height: 156px;
            position: relative;
            overflow: hidden;
        }

        .test img:first-child {
            /* 过渡效果 */
            transition: all .5s;
        }

        .test:hover img:first-child {
            /* 放大1.2 */
            transform: scale(1.2);
        }

        .test img:last-child {
            position: absolute;
            left: 200px;
            top: 10px;
        }
    </style>
</head>

<body>
    <div class="test">
        <img src="./images/product.png" alt="">
        <img src="./images/hot.png" alt="">
    </div>
</body>

</html>